package com.feibiao.computer;

public class OneOperandComputeFactory extends AbstractFactory{
    private String operator;


    @Override
    public OneOperandCompute getOneOperandCompute(String operator) {
        OneOperandCompute com = null;
        switch(operator){
            case "!":com = new Factorial();
        }
        return com;
    }

    @Override
    public TwoOperandCompute getTwoOperandCompute(String operator) {
        return null;
    }
}
